package com.wang.friend.controller;

import com.wang.friend.service.IUserMessageService;
import com.wang.common.core.domain.PageQueryDTO;
import com.wang.common.core.domain.TableDataInfo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "用户消息功能接口")
@RestController
@RequestMapping("/user/message")
public class UserMessageController {

    @Autowired
    private IUserMessageService userMessageService;

    @Operation(summary = "获取用户消息列表")
    @GetMapping("/list")
    public TableDataInfo list(PageQueryDTO pageQueryDTO){
        return userMessageService.list(pageQueryDTO);
    }
}
